.analysis-container {
  width: 100%;
  min-height: 100vh;
  background-image: url('../img/background.jpg');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  background-attachment: fixed;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0;
  box-sizing: border-box;
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  margin: 0;
  overflow: auto;
}

.content {
  width: 90%;
  max-width: 1200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.85);
  padding: 40px;
  border-radius: 10px;
  box-shadow: 0 0 20px rgba(0, 0, 0, 0.2);
  margin-top: 30px;
  margin-bottom: 30px;
}

.tabs {
  width: 100%;
  display: flex;
  border-bottom: 2px solid #8B4513;
  margin-bottom: 20px;
}

.tab {
  padding: 12px 25px;
  cursor: pointer;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1.2rem;
  color: #8B4513;
  transition: all 0.3s;
  margin-right: 10px;
}

.tab.active {
  background-color: #f0e6d2;
  color: #5D4037;
  border-bottom: 3px solid #5D4037;
  font-weight: bold;
}

.tab-content {
  width: 100%;
  padding: 20px;
  min-height: 300px;
  background-color: rgba(255, 255, 255, 0.7);
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

.tab-content h2 {
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1.8rem;
  color: #8B4513;
  margin-bottom: 20px;
  text-align: center;
}

.tab-content p {
  font-size: 1.1rem;
  color: #5D4037;
  line-height: 1.6;
}

/* 导航栏样式 */
.nav-bar {
  width: 100%;
  height: 60px;
  background-color: rgba(255, 255, 255, 0.9);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 30px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 100;
}

.nav-links {
  display: flex;
  gap: 30px;
}

.nav-item {
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  font-size: 1.2rem;
  color: #8B4513;
  cursor: pointer;
  transition: color 0.3s;
}

.nav-item:hover {
  color: #5D4037;
  text-decoration: underline;
}

.user-section {
  position: relative;
}

.user-avatar {
  position: relative;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid #8B4513;
  background-color: #f0e6d2;
  transition: transform 0.2s, box-shadow 0.2s;
}

.user-avatar:hover {
  transform: scale(1.05);
  box-shadow: 0 0 8px rgba(139, 69, 19, 0.6);
}

.user-avatar:active {
  transform: scale(0.95);
}

.avatar-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 0.8rem;
  color: #8B4513;
  font-weight: bold;
}

.login-dropdown {
  position: absolute;
  top: 50px;
  right: 0;
  background-color: white;
  border-radius: 5px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
  padding: 10px;
  z-index: 1000;
  min-width: 100px;
  animation: dropdownFadeIn 0.2s;
}

@keyframes dropdownFadeIn {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

.login-dropdown button {
  background-color: #8B4513;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'ClassicalChinese', 'Ma Shan Zheng', serif;
  width: 100%;
  white-space: nowrap;
}

.login-dropdown button:hover {
  background-color: #6D351A;
}

@font-face {
  font-family: 'ClassicalChinese';
  src: url('https://fonts.googleapis.com/css2?family=Ma+Shan+Zheng&display=swap');
}

.record-list {
  margin-top: 20px;
}

.record-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px;
  margin-bottom: 10px;
  background: #f8f8f8;
  border-radius: 8px;
}

/* 添加按钮容器样式 */
.action-buttons {
  display: flex;
  gap: 10px;
}

/* 提交辨识按钮样式 */
.submit-btn {
  padding: 8px 15px;
  background-color: #4682B4;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'KaiTi', SimSun, serif;
  transition: background-color 0.3s;
}

.submit-btn:hover {
  background-color: #36648B;
}

/* 删除按钮样式调整 */
.delete-btn {
  padding: 8px 15px;
  background-color: #CD5C5C;
  color: white;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-family: 'KaiTi', SimSun, serif;
  transition: background-color 0.3s;
}

.delete-btn:hover {
  background-color: #B22222;
}

/* 弹窗样式 */
.dialog-footer {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 20px;
}

.delete-btn {
  background: #ff4d4f;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 4px;
  cursor: pointer;
  transition: opacity 0.3s;
}

.delete-btn:hover {
  opacity: 0.8;
}

.loading {
  text-align: center;
  padding: 20px;
  color: #666;
}

.empty-tip {
  text-align: center;
  color: #999;
  padding: 20px;
}

.chart-container {
  width: 100%;
  height: 400px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(139, 69, 19, 0.15);
  background: linear-gradient(to bottom right, #FFF8DC, #F5F5DC);
  padding: 15px;
  border: 1px solid #D2B48C;
}

.charts-container {
  display: flex;
  flex-direction: column;
  gap: 30px;
  margin-top: 20px;
}

.chart-box {
  width: 100%;
}

.chart-box h3 {
  text-align: center;
  font-family: 'KaiTi', SimSun, serif;
  color: #8B4513;
  margin-bottom: 10px;
  font-size: 20px;
}

/* 在大屏幕上并排显示 */
@media (min-width: 1200px) {
  .charts-container {
    flex-direction: row;
  }
  
  .chart-box {
    width: 48%;
  }
}

/* 回访记录样式 */
.followup-list {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.followup-card {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(139, 69, 19, 0.1);
  overflow: hidden;
  transition: all 0.3s ease;
  border-left: 4px solid #8B4513;
}

.followup-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 16px rgba(139, 69, 19, 0.15);
}

.followup-header {
  background: #FFF8DC;
  padding: 12px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid #F5DEB3;
}

.doctor-name {
  font-weight: bold;
  color: #8B4513;
  font-size: 16px;
}

.followup-date {
  color: #A0522D;
  font-size: 14px;
}

.followup-body {
  padding: 15px;
}

.questionnaire {
  margin-bottom: 10px;
  color: #654321;
  font-size: 14px;
}

.remark {
  background: #FFFAF0;
  padding: 10px;
  border-radius: 6px;
  border-left: 3px solid #DEB887;
  color: #5D4037;
  font-size: 15px;
  line-height: 1.5;
  margin-top: 10px;
}

.followup-actions {
  margin-top: 15px;
  display: flex;
  justify-content: flex-end;
}

.goto-test-btn {
  background-color: #8B4513;
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  cursor: pointer;
  font-size: 14px;
  transition: all 0.3s ease;
}

.goto-test-btn:hover {
  background-color: #A0522D;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(139, 69, 19, 0.2);
}
